package com.csnf.service.impl;

import com.csnf.mapper.CategoryMapper;
import com.csnf.pojo.Catogery;
import com.csnf.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Catogery> findAll() {
        return categoryMapper.findAll();
    }

    @Override
    public Integer deleteById(Integer id) {
        return categoryMapper.deleteById(id);
    }
}
